ATM Central Server

In this example the ATM Central Server (atmcs) interacts with the ATM clients and relays transaction requests to individual banks.  The interface design follows the object factory pattern .  This example demonstrates how to: This server must be used together with the Bank Server.  Since this implementation has both interface layer objects and persistent objects, you need both VisiBroker (link) and PsePro (link).


Source Files

Batch Files

Running the Codes

This example was developed under VisiBroker (link).  To run the codes, make sure that the VisiBroker Smart Agent (osagent) is running on the server object's network.  Also, the Bank Server needs to be running since it process bank transactions.  (You need to put some bank account information into the bank server too.  Use the Test1.txt command file in the bank directory.)  Then enter the commands:

On Windows:

On Unix: From the console client, you may do for example:
    login 88881001 Jane 888
You may find the card numbers by typing in "showcard" from the atmcs Server.  You may find bank account information from the file Test1.txt under the bank directory.

Alternatively, you may use the runall.bat file to start both the Bank Server and the atmcs Server.  Be sure to wait for the servers to come up (".... is ready") before going over the pauses.  The bank client window will close after finishing putting data to the bank server.